import request from '@/utils/request'

// 登录
export const loginApi = ({ username, password }) => {
  return request.post('/auth/login', {
    username,
    password
  })
}

// 2. 获取用户信息
export const getUserApi = () => {
  return request.get('/auth/currentUser')
}
